<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MantenedorCuentaCorriente.aspx.cs" Inherits="Mantenedores_MantenedorBanco" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contenido" Runat="Server">
    <asp:Panel ID="pnlMantenedorBanco" runat="server" GroupingText="Mantenedor de Banco"
        Height="100%">
    <table>
        <tr>
            <td style="text-align: right;">
                Banco :</td>
            <td style="text-align: left">
                <asp:DropDownList ID="ddlBanco" runat="server" Width="100px">
                </asp:DropDownList></td>
            <td style="text-align: left; width: 141px;">
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ddlBanco"
                    ErrorMessage="Seleccione" Operator="NotEqual" ValidationGroup="ValidaCampos"
                    ValueToCompare="0"></asp:CompareValidator></td>
        </tr>
        <tr>
            <td style="text-align: right;">
                Numero :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbNumero" runat="server" Width="100px"></asp:TextBox>
                *</td>
            <td style="text-align: left; width: 141px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txbNumero"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: left">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <br />
        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="botonCancelar" /><asp:Button ID="btnEliminar" runat="server" Text="Eliminar" OnClick="btnEliminar_Click" CssClass="botonEliminar" /><asp:Button ID="btnModificar" runat="server" Text="Modificar" OnClick="btnModificar_Click" CssClass="botonModificar" /><asp:Button ID="btnNuevo"
            runat="server" Text="Nuevo" OnClick="btnNuevo_Click" CssClass="botonAceptar" /><asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClick="btnAceptar_Click" CssClass="botonNuevo" ValidationGroup="ValidaCampos" /></td>
        </tr>
        <tr>
            <td colspan="3">
                <br />
                </td>
        </tr>
        <tr>
            <td colspan="3">
                &nbsp;<asp:GridView ID="gdvCuentaCorriente" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False" DataSourceID="odsCuentaCorriente" DataKeyNames="Id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" Width="100%">
        <Columns>
            <asp:TemplateField HeaderText="Numero" SortExpression="Codigo">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Codigo") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Numero") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Banco" SortExpression="Nombre">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Nombre") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Banco.Nombre") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <RowStyle CssClass="RowStyle" />
        <PagerStyle CssClass="PagerStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
    </asp:GridView>
            <asp:ObjectDataSource ID="odsCuentaCorriente" runat="server" SelectMethod="Listar"
                    TypeName="EYDIngenieria.ERP.ObjetosDeNegocio.Repositorio.RepositorioCuentaCorriente">
                </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
        <br />
        <br />
        <br />
    </asp:Panel>
    &nbsp; &nbsp;
    <br />
    <br />
    <br />
</asp:Content>

